package com.design.pattern.command.after;

import com.design.pattern.command.before.Barbecue;

/**
 * 长沙先飞信息科技有限公司<br>
 * Created with IntelliJ IDEA.<br>
 * Date:2024/6/20<br>
 * Time:16:41<br>
 * 功能描述：<br>
 *      抽象命令类，只需要确定 “烤肉串者” 是谁
 * @author huang hou chun
 * @since JDK 1.8 <br>
 * Copyright (c) 2023 www.csxfrj.com System Incorporated All Rights Reserved.
 */
public abstract class Command {

    protected Barbecue receiver;

    public Command(Barbecue receiver) {
        this.receiver = receiver;
    }

    // 执行命令
    public abstract void execute();
}
